package com.koron.order.overhaul.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.koron.order.overhaul.utils.DeleteFlag;
import com.koron.order.overhaul.utils.Sortable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (OverhaulOrderReadyBean) 计划检修工单-作业准备从表
 * @author twcao
 * @since 2021-09-29 09:49:33
 */
@Data
@ApiModel("计划检修工单-作业准备从表")
public class OverhaulOrderReadyBean implements Serializable, DeleteFlag, Sortable {
    private static final long serialVersionUID = 619494241918155725L;

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "大修工单表主键")
    private String overhaulId;

    @ApiModelProperty(value = "大修工单-专业表主键")
    private String majorId;

    @ApiModelProperty(value = "大修工单-表单ID")
    private String formId;

    @ApiModelProperty(value = "作业准备类别")
    private String type;

    @ApiModelProperty(value = "作业准备工具")
    private String tools;

    @ApiModelProperty(value = "结果确认")
    private Boolean result;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonIgnore
    @ApiModelProperty(value = "删除标志, 0：delete_flag=false，代表未删除1：delete_flag = true，代表已删除", hidden = true)
    private Boolean deleteFlag;
}
